import React from 'react';
import eventBus from "./utils/event-bus";

class AppBoy extends React.Component {

    boyClick = function () {
        eventBus.emit('next', 1, 'AppBoy');
    };

    render() {
        return (
            <div>
                <span style={this.context} onClick={this.boyClick}>AppBoy<button>切换</button></span>
            </div>
        )
    }
}

export default AppBoy